
Chapter 34. GPS Mapping and Geotagged Images : GPS Tests

From the website:

  Killer Game Programming in Java
  http://fivedots.coe.psu.ac.th/~ad/jg

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th


If you use this code, please mention my name, and include a link
to the website.

Thanks,
  Andrew

============================

Topics: reading data from a GPS receiver using RXTX and
        gpsinput from GPSylon.

Directory contents:

There are 3 Java files:
  * PortList.java
  * SerialBufReader.java
  * ReadGPS.java

One log4j file:
   * log4j.properties
       - this switches off log4j which is otherwise
         called by gpsinput when ReadGPS is run

There are 2 batch files:
  * compile.bat
  * run.bat
  - both batch files assume:
    * gpsylon is installed in c:\gpsylon_bin-0.5.3\
      (this is only used by the ReadGPS example)
    * RXTX and its Windows DLLs are installed in c:\rxtx\

----------------------------
Compilation:

  > compile *.java

----------------------------
Execution:

  > run PortList
  

  > run SerialBufReader <serial_port_name>
e.g.
  > run SerialBufReader COM3


  > run ReadGPS <serial_port_name>
e.g.
  > run ReadGPS COM3
 
----------------------------
Hardware

For the GPS-related examples, you will need a USB GPS
receiver which can receive NMEA messages, and whose 
driver makes it appear to be a serial port.
e.g.
  the Canmore GT-730F USB GPS receiver
  http://www.canmore.com.tw/

----------------------------
RXTX Installation
   http://www.rxtx.org/

I downloaded rxtx 2.1-7r2 (stable) for Windows:
  rxtx-2.1-7-bins-r2.zip

I unzipped it, and created a folder c:\rxtx containing:
  * RXTXcomm.jar
  * rxtxSerial.dll
  * rxtxParallel.dll

----------------------------
GPSylon Installation
  http://www.tegmento.org/gpsylon/
  http://sourceforge.net/projects/gpsmap/files/  (for downloads)

I downloaded the latest GPSylon binary and source code:
   * gpsylon_bin-0.5.3.zip   (binary)
   * gpsylon_src-0.5.3.zip   (source; contains API docs)

I unzipped gpsylon_bin-0.5.3.zip into c:\gpsylon_bin-0.5.3\

---------
Last updated: 8th November 2010
